<?php

namespace app\system\model\customer;

use app\system\model\Admin;
use app\system\model\business\Quotation;
use app\system\model\corp\Supplier;
use app\system\model\HsCode;
use app\system\model\product\Category;
use app\system\model\User;
use think\Model;


class Product extends Model {
    /**
     * @var string 自动写入时间戳
     */
    protected $autoWriteTimestamp = false;

    public $append = [];

    public $name = 'product';

    public function group(){
        return $this->hasOne(Group::class, 'id', 'group_id');
    }

    public function supplier(){
        return $this->hasOne(Supplier::class, 'id', 'supplier_id');
    }

    public function category(){
        return $this->hasOne(Category::class, 'id', 'category_id');
    }

}